  function queryLotteryForm(pageIndex,pageSize)
  {
          var url =base+"/lotteryService/pagingLotteryList.do?pageIndex="+pageIndex+"&pageSize="+pageSize;
          var params =jQuery("#queryForm").serialize();
          params=decodeURIComponent(params,true); 
          jQuery("#lotteryContent").load(url+"&"+ encodeURI(encodeURI(params)));
  }


  function gotoPage(pageSize)
  {
        var pageIndex =jQuery("#pageIndex").val();
        queryLotteryForm(pageIndex,pageSize);
  }


  function toEditLottery(id)
  {
  	   location.href=base+"/lotteryService/toEditLottery.do?lotteryId="+id;
  }


  jQuery(function()
  {
          queryLotteryForm(1,15);
  });


  